<?php
/**
 * PHP Daycare
 * This is out main page file. Basically we get to login and do other things from here.
 * @author Jason Butz
 * @version 0.0
 * @package PHPDaycare
 */

include_once("functions.php");
include_once("config.php");
session_start();
// Our user must be logged in to view things, otherwise they get a login screen!
if($session->isloggedin())
{
	// The user is logged in. This is good
	$temp->display('primary', TRUE); // Display a login prompt without a menu
}
else
{
	//The user is not logged in, so show the login template
	$temp->display('login', FALSE); // Display a login prompt without a menu
}
?>
